﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E69 RID: 3689
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueBonusSelectResult : IMessage<RogueBonusSelectResult>, IMessage, IEquatable<RogueBonusSelectResult>, IDeepCloneable<RogueBonusSelectResult>, IBufferMessage
	{
		// Token: 0x17002EDC RID: 11996
		// (get) Token: 0x0600A595 RID: 42389 RVA: 0x001BDFC8 File Offset: 0x001BC1C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueBonusSelectResult> Parser
		{
			get
			{
				return RogueBonusSelectResult._parser;
			}
		}

		// Token: 0x17002EDD RID: 11997
		// (get) Token: 0x0600A596 RID: 42390 RVA: 0x001BDFCF File Offset: 0x001BC1CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueBonusSelectResultReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002EDE RID: 11998
		// (get) Token: 0x0600A597 RID: 42391 RVA: 0x001BDFE1 File Offset: 0x001BC1E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueBonusSelectResult.Descriptor;
			}
		}

		// Token: 0x0600A598 RID: 42392 RVA: 0x001BDFE8 File Offset: 0x001BC1E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBonusSelectResult()
		{
		}

		// Token: 0x0600A599 RID: 42393 RVA: 0x001BDFF0 File Offset: 0x001BC1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBonusSelectResult(RogueBonusSelectResult other) : this()
		{
			this.bonusId_ = other.bonusId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A59A RID: 42394 RVA: 0x001BE015 File Offset: 0x001BC215
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBonusSelectResult Clone()
		{
			return new RogueBonusSelectResult(this);
		}

		// Token: 0x17002EDF RID: 11999
		// (get) Token: 0x0600A59B RID: 42395 RVA: 0x001BE01D File Offset: 0x001BC21D
		// (set) Token: 0x0600A59C RID: 42396 RVA: 0x001BE025 File Offset: 0x001BC225
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BonusId
		{
			get
			{
				return this.bonusId_;
			}
			set
			{
				this.bonusId_ = value;
			}
		}

		// Token: 0x0600A59D RID: 42397 RVA: 0x001BE02E File Offset: 0x001BC22E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueBonusSelectResult);
		}

		// Token: 0x0600A59E RID: 42398 RVA: 0x001BE03C File Offset: 0x001BC23C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueBonusSelectResult other)
		{
			return other != null && (other == this || (this.BonusId == other.BonusId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A59F RID: 42399 RVA: 0x001BE06C File Offset: 0x001BC26C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BonusId != 0U)
			{
				num ^= this.BonusId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A5A0 RID: 42400 RVA: 0x001BE0AB File Offset: 0x001BC2AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A5A1 RID: 42401 RVA: 0x001BE0B3 File Offset: 0x001BC2B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A5A2 RID: 42402 RVA: 0x001BE0BC File Offset: 0x001BC2BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BonusId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.BonusId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A5A3 RID: 42403 RVA: 0x001BE0F0 File Offset: 0x001BC2F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BonusId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BonusId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A5A4 RID: 42404 RVA: 0x001BE12E File Offset: 0x001BC32E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueBonusSelectResult other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BonusId != 0U)
			{
				this.BonusId = other.BonusId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A5A5 RID: 42405 RVA: 0x001BE15F File Offset: 0x001BC35F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A5A6 RID: 42406 RVA: 0x001BE168 File Offset: 0x001BC368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 120U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.BonusId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004352 RID: 17234
		private static readonly MessageParser<RogueBonusSelectResult> _parser = new MessageParser<RogueBonusSelectResult>(() => new RogueBonusSelectResult());

		// Token: 0x04004353 RID: 17235
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004354 RID: 17236
		public const int BonusIdFieldNumber = 15;

		// Token: 0x04004355 RID: 17237
		private uint bonusId_;
	}
}
